﻿namespace RabbitMQSample.WebApi.RabbitMQLibs.Options
{
    public class RabbitMqConnectionOptions
    {
        /// <summary>
        /// RabbitMQ 服务地址（域名、IP，端口），多个实例之间使用半角逗号分隔（例如：localhost:5672,localhost:5673,localhost:5674）
        /// </summary>
        public string Addresses { get; set; } = "localhost:5672";
        /// <summary>
        /// 账号
        /// </summary>
        public string Username { get; set; } = "guest";
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = "guest";
        /// <summary>
        /// 虚拟主机（用于逻辑隔离，不同的虚拟主机中，队列、交换机等东西都是独立的，互不影响）
        /// </summary>
        public string Vhost { get; set; } = "/";
        /// <summary>
        /// 消费者调度并发数
        /// </summary>
        public int ConsumerDispatchConcurrency { get; set; } = 1;
    }
}
